//
//  ModelOfDestinationSpecificSearchResult.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/2.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfDestinationSpecificSearchResult.h"

@implementation ModelOfDestinationSpecificSearchResult
- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"cnname"]) {
        self.cnname = value;
    }if ([key isEqualToString:@"enname"]) {
        self.enname = value;
    }if ([key isEqualToString:@"type"]) {
        self.type = [value integerValue];
    }if ([key isEqualToString:@"label"]) {
        self.label = value;
    }if ([key isEqualToString:@"parentid"]) {
        self.parentid = [value integerValue];
    }if ([key isEqualToString:@"parentname"]) {
        self.parentname = value;
    }if ([key isEqualToString:@""]) {
        self.parent_parentname = value;
    }if ([key isEqualToString:@"beennumber"]) {
        self.beennumber = [value integerValue];
    }if ([key isEqualToString:@"beenstr"]) {
        self.beenstr = value;
    }if ([key isEqualToString:@"has_mguide"]) {
        if ([value boolValue] == YES) {
            self.has_mguide = 1;
        }else{
            self.has_mguide = 0;
        }
    }if ([key isEqualToString:@"grade"]) {
        self.grade = [value integerValue];
    }
    if ([key isEqualToString:@"photo"]) {
        self.photo = value;
    }if ([key isEqualToString:@"id"]) {
        self.ID = [value integerValue];
    }
}


@end
